package com.xframe.xdal.core.autofill.proc;


import com.xframe.xdal.core.autofill.IAutoFillBean;
import com.xframe.xdal.core.autofill.IAutoProc;
import com.xframe.xdal.core.util.UUIDCreateUtil;


/**
 * UUID自动填充
 *
 * @author xufeng
 * @date 2022-09-19
 * @version 1.0
 * */
public class UUIDAutoProc implements IAutoProc {
    /**
     * 自动填充处理
     *
     * @param autoFillBean 自动填充处理配置
     * @param entity 被填充的对象
     * @return UUID String
     */
    @Override
    public Object getVal(IAutoFillBean autoFillBean, Object entity, Object val) {
        return UUIDCreateUtil.getUUID().toString();
    }
}
